/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    FangYongliang
 * 创建时间:    2023-10-13
 */
package org.jeecg.modules.dock.handler;


import org.jeecg.modules.dock.mapper.DockTaskRecordMapMapper;
import org.jeecg.modules.flow.sys.service.WorkFlowService;

/**
 * //工厂
 *
 * @author FangYongliang
 * @version 1.0.0
 * @since 2023-10-13
 */
public class StatusFactory {

    public static StatusHandler createHandler(String sourceSys){
        sourceSys = sourceSys.toUpperCase();
        StatusHandler  result = null;
        switch (sourceSys){
            case "EMS":  result = new EmsBucketStatusHandler();break;
            case "MDS": result = new MdsStatusHandler();break;
            default: throw new RuntimeException("未找到对应系统处理器");
        }
        return result;

    }

}
